package com.idc.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;

@Configuration
@MapperScan("com.idc.mapper")
public class MybatisPlusConfig {
    @Bean
    public PaginationInnerInterceptor paginationInterceptor() {
    	PaginationInnerInterceptor paginationInterceptor = new PaginationInnerInterceptor();
    	paginationInterceptor.setDbType(DbType.MYSQL);
        return paginationInterceptor;
    }
}
